package com.agriculture.competition.mapper;

import com.agriculture.competition.domain.JaCompetitionScore;

import java.util.List;

/**
 * 比赛分数Mapper接口
 *
 * @author agriculture
 * @date 2024-11-12
 */
public interface JaCompetitionScoreMapper {
    /**
     * 查询比赛分数
     *
     * @param id 比赛分数主键
     * @return 比赛分数
     */
    public JaCompetitionScore selectJaCompetitionScoreById(Long id);

    /**
     * 查询比赛分数列表
     *
     * @param jaCompetitionScore 比赛分数
     * @return 比赛分数集合
     */
    public List<JaCompetitionScore> selectJaCompetitionScoreList(JaCompetitionScore jaCompetitionScore);

    /**
     * 新增比赛分数
     *
     * @param jaCompetitionScore 比赛分数
     * @return 结果
     */
    public int insertJaCompetitionScore(JaCompetitionScore jaCompetitionScore);

    /**
     * 修改比赛分数
     *
     * @param jaCompetitionScore 比赛分数
     * @return 结果
     */
    public int updateJaCompetitionScore(JaCompetitionScore jaCompetitionScore);

    /**
     * 删除比赛分数
     *
     * @param id 比赛分数主键
     * @return 结果
     */
    public int deleteJaCompetitionScoreById(Long id);

    /**
     * 批量删除比赛分数
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJaCompetitionScoreByIds(Long[] ids);


    public List<JaCompetitionScore>  queryCompetitionScoreByCompetitionId(Long competitionId);


    public int updateJaCompetitionScoreByUser(JaCompetitionScore jaCompetitionScore);

    public int updateJaCompetitionScoreByUser1(JaCompetitionScore jaCompetitionScore);
}
